<template>
    <MyCard>
        <template #header>
            <div class="card-header">
                <span style="margin-right: 5px;">前端开发</span>
                <el-button type="primary" @click="onChange">发送</el-button>
            </div>
        </template>
        <h3>{{ state }}</h3>
    </MyCard>
</template>
<script setup lang="ts">
import MyCard from './slotChild.vue';
import { ref } from 'vue';
const state = ref('做一个专业的程序员')
function onChange() {
    state.value = "是一件不容易的事"
}
</script>
